﻿using Behavioral;

namespace Calculator.MSTest
{
    public class AddingTwoNumbers : IAction<Calculator, int>
    {
        public AddingTwoNumbers(int x, int y)
        {
            this.x = x;
            this.y = y;
        }

        public int Execute(Calculator target)
        {
            return target.Add(x, y);
        }

        private int x;
        private int y;
    }
}
